<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>卡片居中</title>
    <style>
        body{
            background-color: white;
        }
        .dahe{
            width: 300px;
            height: 450px;
            background-color: #999999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .img{
            width: 250px;
        }
        .p{
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="dahe content">
        <img src="../img/car.jpg" class="img" alt="">
        <div class="p">
            <p>平衡车</p>
            <p style="color: azure;">成年人的玩具</p>
            <p style="color: black;">400元</p>
        </div>
    </div>
</body>
</html>